package com.admin.service;

import com.admin.domain.Attachment;
import com.admin.req.declare.AttachmentReq;

import java.util.List;

/**
 * 申报service
 *
 * @author yangzhongliang
 * @date 2022/05/16
 */
public interface AttachmentService {
    /**
     * 保存文件 - 返回 主键id
     * @param declareId
     * @param attachmentReqs
     * @return
     */
    String uploadAttachment(Integer declareId, List<AttachmentReq> attachmentReqs);

    /**
     * 根据 附近id， 获取附件信息
     * @param attachmentIds
     * @return
     */
    List<AttachmentReq> getAttachments(String attachmentIds);

    List<Attachment> findListByDeclareIds(List<Integer> declareIdList);

    int deleteByDeclareId(Integer declareId);
}
